<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="/includes.jsp"%>

<div class="layout">
    <table class="styled" cellspacing="0">
        <tr>
            <th class="styled">Date/Name/Person</th>
            <th class="styled">Description</th>
        </tr>
        <logic:iterate name="changeDeltaValues" id="changeDelta">
            <tr>
                <td class="styled" style="white-space: nowrap;">
                    <b><beans:write name="changeDelta" property="changeDeltaTypeValue.name"/></b><br/>
                    <beans:write name="changeDelta" property="date" format="yyyy-MM-dd HH:mm:ss"/><br/>
                    <html:link action="showNode.do" paramId="nodeId" paramName="changeDelta" paramProperty="userValue.personValue.contactableValue.nodeValue.nodeId"><beans:write name="changeDelta" property="userValue.personValue.contactableValue.nodeValue.name"/></html:link>:<html:link action="showNode.do" paramId="nodeId" paramName="changeDelta" paramProperty="userValue.nodeValue.nodeId"><beans:write name="changeDelta" property="userValue.userName"/></html:link>
                </td>
                <td class="styled" width="100%">
                    <table class="styled-no-outline" cellspacing="0" cellpadding="0">
                        <logic:iterate name="changeDelta" property="changeDeltaItemValues" id="changeDeltaItem">
                            <tr><td style="text-indent: -30; padding-left: 30;">
                                <b><beans:write name="changeDeltaItem" property="changeDeltaItemTypeValue.name"/>:</b>
                                <logic:equal name="changeDeltaItem" property="description" value="">
                                    <i>blank</i><br/>
                                </logic:equal>
                                <logic:notEqual name="changeDeltaItem" property="description" value="">
                                    <velocityme:markup><beans:write name="changeDeltaItem" property="description"/></velocityme:markup><br/>
                                </logic:notEqual> 
                            </td></tr>
                        </logic:iterate>
                        <logic:present name="changeDelta" property="fileAttachmentValue">
                            <tr><td style="text-indent: -30; padding-left: 30;">
                                <b>Attachment:</b>
                                <html:link action="attachment.do" paramId="name" paramName="changeDelta" paramProperty="fileAttachmentValue.serverName" target="#xyz">
                                    <beans:write name="changeDelta" property="fileAttachmentValue.name"/>
                                </html:link>
                            </td></tr>
                        </logic:present>
                    </table>
                </td>
            </tr>
        </logic:iterate>
    </table>
</div>